|
Well-known text (WKT) is a text markup language for representing vector geometry objects on a map, spatial reference systems of spatial objects and transformations between spatial reference systems. A binary equivalent, known as well-known binary (WKB), is used to transfer and store the same information on databases, such as PostGIS, Microsoft SQL Server and DB2. The formats were originally defined by the Open Geospatial Consortium (OGC) and described in their Simple Feature Access and Coordinate Transformation Service specifications. The current standard definition is in the ISO/IEC 13249-3:2011 standard, "Information technology -- Database languages -- SQL multimedia and application packages -- Part 3: Spatial" (SQL/MM). ==Geometric objects== WKT can represent 18 distinct geometric objects: *Geometry *Point, MultiPoint *LineString, MultiLineString *Polygon, MultiPolygon, Triangle *CircularString *Curve, MultiCurve, CompoundCurve *CurvePolygon *Surface, MultiSurface, PolyhedralSurface *TIN *GeometryCollection Coordinates for geometries may be 2D (''x'', ''y''), 3D (''x'', ''y'', ''z''), 4D (''x'', ''y'', ''z'', ''m'') with an ''m'' value that is part of a linear referencing system or 2D with an ''m'' value (''x'', ''y'', ''m''). Three-dimensional geometries are designated by a "Z" after the geometry type and geometries with a linear referencing system have an "M" after the geometry type. Empty geometries which contain no coordinates can be specified by using the symbol EMPTY after the type name.WKT geometries are used throughout OGC specifications and are present in applications that implement these specifications. For example, PostGIS contains functions that can convert geometries to and from a WKT representation, making them human readable. It's useful to note that the OGC standard definition requires a polygon to be topologically closed. It also states that if the exterior linear ring of a polygon is defined in a counter clockwise direction it will be seen from the "top". Any interior linear rings should be defined in opposite fashion compared to the exterior ring, in this case, clockwise.〔See the OGC Implementation Specification for geographic information - Simple Feature Access, section 6.1.11.1. http://www.opengeospatial.org/standards/sfa〕 The following are some other examples of geometric WKT strings: (Note: Each item below is an individual geometry.) 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Well-known text」の詳細全文を読む スポンサード リンク
|